package com.upb.webserver.dao.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@Deprecated
public class TbContract implements Serializable {

    public TbContract(Integer appId, String name) {
        this.applicationId = appId;
        this.name = name;
    }

    public TbContract(Integer appId, Byte chainType, Integer remoteId) {
        this.applicationId = appId;
        this.chainType = chainType;
        this.remoteId = remoteId;
    }

    public TbContract(Integer chainId, Integer appId, Byte contractStatus, Byte chainType, Integer remoteId) {
        this.chainId = chainId;
        this.applicationId = appId;
        this.chainType = chainType;
        this.remoteId = remoteId;
        this.status = contractStatus;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.remote_id
     *
     * @mbg.generated
     */
    private Integer remoteId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.chain_id
     *
     * @mbg.generated
     */
    private Integer chainId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.application_id
     *
     * @mbg.generated
     */
    private Integer applicationId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.name
     *
     * @mbg.generated
     */
    private String name;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.contract_type
     *
     * @mbg.generated
     */
    private Byte contractType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.chain_type
     *
     * @mbg.generated
     */
    private Byte chainType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.address
     *
     * @mbg.generated
     */
    private String address;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.status
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.create_time
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column tb_contract.modify_time
     *
     * @mbg.generated
     */
    private Date modifyTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table tb_contract
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;
}
